<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>工作量详情</title>
<jsp:include page="${home}/assets/common_inc_new.jsp"  flush="true"></jsp:include>
<script type="text/javascript" src="${home}/system/common/scripts/utils.js"></script>
<link rel="stylesheet" type="text/css" href="./details.css">
<link href="//gsy.oss-cn-beijing.aliyuncs.com/css/global.css>" rel="stylesheet">
<style type="text/css"> 
   table{width:1190px;font-size:15px;line-height:1.2;border-top:1px solid #a8a8a8;border-left:1px solid #a8a8a8;text-align: center;margin:57px auto;}
   table  caption{padding:26px 0;font-size: 26px;line-height: 1;color:#e63b3b;}
   table td, table th{ border-right:1px solid #a8a8a8; border-bottom:1px solid #a8a8a8;height:20px;}
   table th{background-color:#eeeeee;padding:8px 0;}
   table td{font-size: 12px;line-height:26px;padding:4px 15px 4px 9px;}
   .align-justy{text-align: justify;}

   *{
		font-weight: 400;
	}
	.btn{
		width: 120px;
		height: 40px;
		margin: 0px 40px 0 0;
		border: 1px solid #288ff4;
		color: #288ff4;
		font-size: 16px;
		background-color: #fff;
		border-radius: 5px;
	}
</style>

</head>

<body class="mainbody">
 
  <!--导航栏-->
    <div class="location">
        <a onclick="doReturn();" class="back"><i></i><span>返回管理页面</span></a>
        <i class="arrow"></i>
        <span id="lbTitle">工作量详情</span>
    </div>

	<%
		//	获得id
		String editId =request.getParameter("id");
	 %>
	 <input type="hidden" name="id" id="id" value="<%=editId %>"/>

  <div class="details-title">
    <span id="monthStr"></span>
	<span> 姓名: </span> <span id="staffName"> </span>
	<span> 身份证号: </span>  <span id="idcard"> </span> (工作量)情况
  </div>
  <table cellpadding="0" cellspacing="0" border="0">
    <caption align="top"></caption>
	<!-- 第1行 -->
	<tr>
		<td rowspan="2" colspan="4">周一至周五法定工作日(系数1）</td>
		<td rowspan="1" colspan="1">天数</td>
        <td rowspan="1" colspan="1" id="schedule_1_day"></td>
	</tr>
	<tr>
        <td rowspan="1">分数</td>
        <td rowspan="1" id="schedule_1_score"></td>
    </tr>

	<!-- 第2行 -->
	<tr>
		<td rowspan="4"  colspan="2">周一至周五法定工作日(系数1）</td>
		<td rowspan="2" colspan="2">早中晚副班</td>
		<td rowspan="1" colspan="1">天数</td>
        <td rowspan="1" colspan="1" id="schedule_2_day"></td>
	</tr>
	<tr>
		<td rowspan="1">分数</td>
        <td rowspan="1" id="schedule_2_score"></td>
    </tr>
	<tr>
        <td rowspan="2" colspan="2">16小时值班</td>
		<td rowspan="1">天数</td>
		<td id="schedule_3_day"></td>
    </tr>
	<tr>
        <td rowspan="1">分数</td>
		<td id="schedule_3_score"></td>
    </tr> 


	<!-- 第3行 -->
	<tr>
		<td rowspan="6"  colspan="2">周末加值班（系数2）</td>
		<td rowspan="2" colspan="2">早中晚副班</td>
		<td rowspan="1">天数</td>
        <td rowspan="1" id="schedule_4_day"></td>
	</tr>
	<tr>
		<td rowspan="1">分数</td>
        <td rowspan="1" id="schedule_4_score"></td>
    </tr>
	<tr>
        <td rowspan="2" colspan="2">副班</td>
		<td rowspan="1" >天数</td>
		<td id="schedule_5_day"></td>
    </tr>
	<tr>
        <td rowspan="1">分数</td>
		<td id="schedule_5_score"></td>
    </tr> 
	<tr>
        <td rowspan="2" colspan="2">24小时值班</td>
		<td rowspan="1">天数</td>
		<td id="schedule_6_day"></td>
    </tr>
	<tr>
        <td rowspan="1">分数</td>
		<td id="schedule_6_score"></td>
    </tr> 
	

	<!-- 第4行 -->
	<tr>
		<td rowspan="6"  colspan="2">法定节假日相连假日值班（系数2.5）</td>
		<td rowspan="2" colspan="2">早中晚副班</td>
		<td rowspan="1" colspan="1">天数</td>
        <td rowspan="1" colspan="1" id="schedule_7_day"></td>
	</tr>
	<tr>
		<td rowspan="1">分数</td>
        <td rowspan="1" id="schedule_7_score"></td>
    </tr>
	<tr>
        <td rowspan="2" colspan="2">副班</td>
		<td rowspan="1">天数</td>
		<td id="schedule_8_day"></td>
    </tr>
	<tr>
        <td rowspan="1">分数</td>
		<td id="schedule_8_score"></td>
    </tr> 
	<tr>
        <td rowspan="2" colspan="2">24小时值班</td>
		<td rowspan="1">天数</td>
		<td id="schedule_9_day"></td>
    </tr>
	<tr>
        <td rowspan="1">分数</td>
		<td id="schedule_9_score"></td>
    </tr> 

	<!-- 第5行 -->
	<tr>
		<td rowspan="6"  colspan="2">法定节假日加值班（不含春节系数3）</td>
		<td rowspan="2" colspan="2">早中晚副班</td>
		<td rowspan="1" colspan="1">天数</td>
        <td rowspan="1" colspan="1" id="schedule_10_day"></td>
	</tr>
	<tr>
		<td rowspan="1">分数</td>
        <td rowspan="1" id="schedule_10_score"></td>
    </tr>
	<tr>
        <td rowspan="2" colspan="2">副班</td>
		<td rowspan="1">天数</td>
		<td id="schedule_11_day"></td>
    </tr>
	<tr>
        <td rowspan="1">分数</td>
		<td id="schedule_11_score"></td>
    </tr> 
	<tr>
        <td rowspan="2" colspan="2">24小时值班</td>
		<td rowspan="1">天数</td>
		<td id="schedule_12_day"></td>
    </tr>
	<tr>
        <td rowspan="1">分数</td>
		<td id="schedule_12_score"></td>
    </tr> 

	<!-- 第6行 -->
	<tr>
		<td rowspan="6"  colspan="2">春节假日加值班（系数4）</td>
		<td rowspan="2" colspan="2">早中晚副班</td>
		<td rowspan="1" colspan="1">天数</td>
        <td rowspan="1" colspan="1" id="schedule_13_day"></td>
	</tr>
	<tr>
		<td rowspan="1">分数</td>
        <td rowspan="1" id="schedule_13_score"></td>
    </tr>
	<tr>
        <td rowspan="2" colspan="2">副班</td>
		<td rowspan="1">天数</td>
		<td id="schedule_14_day"></td>
    </tr>
	<tr>
        <td rowspan="1">分数</td>
		<td id="schedule_14_score"></td>
    </tr> 
	<tr>
        <td rowspan="2" colspan="2">24小时值班</td>
		<td rowspan="1">天数</td>
		<td id="schedule_15_day"></td>
    </tr>
	<tr>
        <td rowspan="1">分数</td>
		<td id="schedule_15_score"></td>
    </tr> 

	<!-- 第7行 -->
	<tr>
		<td rowspan="1" colspan="5">额外分值</td>
        <td rowspan="1" colspan="1" id="schedule_16_score"></td>
	</tr>

	<!-- 第7行 -->
	<tr>
		<td rowspan="1" colspan="5">0点后加班分值</td>
        <td rowspan="1" colspan="1" id="midnight_score"></td>
	</tr>

	<!-- 第8行 -->
	<tr>
		<td rowspan="1" colspan="5">总分值</td>
        <td rowspan="1" colspan="1" id="all_score"></td>
	</tr>
	
	<!-- 第9行 -->
	<tr>
		<td rowspan="1" colspan="5">加班分值（总分值-法定分值）</td>
        <td rowspan="1" colspan="1" id="overtime_score"></td>
	</tr>

	<!-- 第10行 -->
	<tr>
		<td rowspan="1" colspan="5">加值班费</td>
        <td rowspan="1" colspan="1" id="overtime_pay" ></td>
	</tr>
  </table>

  <div class="details-bottom">
      <!--<button class="action" type="button" onclick="back()">返回</button>-->
	  <input type="button" id="btnReturn" name="btnReturn" value="返回" class="btn" onclick="back();" />
  </div>

		

	<script type="text/javascript">
	$(document).ready(function () {
			getDetailInfo();
	})

	function doReturn(){
	   window.history.back(-1);
	   parent.diag.close();
    }

	function back() {
	  window.location.href = "index.jsp";
	}

	// 获得工作量详情信息
    function getDetailInfo() {
       var head = {	
			"service_name": "cn.dy.workatten.service.DutyAllowanceService",
			"operation_name": "getDutyAllowanceById"
		}
		
		var param = {
			"id":$("#id").val(),
		}
		var options = {
			"handleError": false,
			"showProgressBar":false,
			"timeout":60000*10
		}
		
		var myCallback=function callBack(data) {
			if(data.response_code==0){
				var oneDetail = data.content.result;

				$("#monthStr").html(oneDetail.monthStr);
				$("#staffName").html(oneDetail.staffName);
				$("#idcard").html(oneDetail.idcard);

				$("#schedule_1_score").html(oneDetail.schedule_1_score);
				$("#schedule_2_score").html(oneDetail.schedule_2_score);
				$("#schedule_3_score").html(oneDetail.schedule_3_score);
				$("#schedule_4_score").html(oneDetail.schedule_4_score);
				$("#schedule_5_score").html(oneDetail.schedule_5_score);
				$("#schedule_6_score").html(oneDetail.schedule_6_score);
				$("#schedule_7_score").html(oneDetail.schedule_7_score);
				$("#schedule_8_score").html(oneDetail.schedule_8_score);
				$("#schedule_9_score").html(oneDetail.schedule_9_score);
				$("#schedule_10_score").html(oneDetail.schedule_10_score);
				$("#schedule_11_score").html(oneDetail.schedule_11_score);
				$("#schedule_12_score").html(oneDetail.schedule_12_score);
				$("#schedule_13_score").html(oneDetail.schedule_13_score);
				$("#schedule_14_score").html(oneDetail.schedule_14_score);
				$("#schedule_15_score").html(oneDetail.schedule_15_score);

				$("#schedule_1_day").html(oneDetail.schedule_1_day);
				$("#schedule_2_day").html(oneDetail.schedule_2_day);
				$("#schedule_3_day").html(oneDetail.schedule_3_day);
				$("#schedule_4_day").html(oneDetail.schedule_4_day);
				$("#schedule_5_day").html(oneDetail.schedule_5_day);
				$("#schedule_6_day").html(oneDetail.schedule_6_day);
				$("#schedule_7_day").html(oneDetail.schedule_7_day);
				$("#schedule_8_day").html(oneDetail.schedule_8_day);
				$("#schedule_9_day").html(oneDetail.schedule_9_day);
				$("#schedule_10_day").html(oneDetail.schedule_10_day);
				$("#schedule_11_day").html(oneDetail.schedule_11_day);
				$("#schedule_12_day").html(oneDetail.schedule_12_day);
				$("#schedule_13_day").html(oneDetail.schedule_13_day);
				$("#schedule_14_day").html(oneDetail.schedule_14_day);
				$("#schedule_15_day").html(oneDetail.schedule_15_day);

				$("#schedule_16_score").html(oneDetail.schedule_16_score);
				$("#all_score").html(oneDetail.all_score);
				$("#overtime_score").html(oneDetail.overtime_score);
				$("#overtime_pay").html(oneDetail.overtime_pay);
				$("#midnight_score").html(oneDetail.midnight_score);

			}else{
				alert(data.response_detail);
			}				
		}		
		$.ServiceAgent.JSONInvoke(head, param, myCallback, options);
    }

</script>
</body>
</html>
